package www.ym.com.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class Note implements Serializable {
    public static final long serialVersionUID = 1L;
    private Long id;

    //问题
     private String problem;
     //关键字
     private String keyword;

    //笔记类型  0: 前端笔记  1:后端笔记
    private Integer type;

    //解答
    private String answer;

    @TableField(fill = FieldFill.INSERT) //插入时填充字段
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)  //插入和修改时填充字段
    private LocalDateTime updateTime;

}
